<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>对象</title>
	<script type="text/javascript">

	var obj = {};

	// var name='999999';

	function car () {
		this.name='宝马';
		this.color='红色';
		this.length='2m';
		this.height='1m';
		this.run =function  (argument) {
			name = '09999';
		}
		this.zhairen =function  (argument) {
			alert('可以载人');
		}
	}

	var obj = new car();

	obj.name='我的宝马';
	obj.type = 'X5';

	obj.jiayou=function  (argument) {
		alert('可以加油');
	}

	// alert(obj.name);

	// obj.run();

	// obj.jiayou();


	// for (var i in obj) {
	// 	document.write(typeof(obj[i]));
		// document.write("<br>");
		// widows
	// };













	</script>
</head>
<body>
	
</body>
</html>